package com.xuan.entity.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class LoggingMessage {
//    // 日志类型
//    private Integer type;
    // 用户id
    private Long userId;

    // 用户行为
    private String action;

    // 用户ip
    private String ip;

    // 用户行为详情
    private String detail;

    @Override
    public String toString() {
        return "LoggingMessage{" +
                "userId=" + userId +
                ", action='" + action + '\'' +
                ", ip='" + ip + '\'' +
                ", detail='" + detail + '\'' +
                '}';
    }
}
